package src.com.doit.Demo07;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        double zongZiChan = 1000000;
        ArrayList<Employee> list = new ArrayList<>();

        list.add(new JingLi("段红光", "000", 1000000, 50000, 10000));
        list.add(new FuWuYuan("付心人", "001", 38250, 250));
        list.add(new ChuShi("李德发", "002", 10000, 1000));

        GongSi gs = new GongSi(zongZiChan, list);
        gs.show();
        gs.payoff();
        System.out.println("----------发完工资后---------");
        gs.show();

        gs.randomEmployee();

    }
}
